<div class="body-header">
	<div class="buttons">
		<span class="button" name="actionBack">Back</span>
		<span class="button" name="actionSave">Save</span>
		<span class="button" name="viewMore">More</span>
	</div>
	<h2><b><%= data.Subject %></b></h2>
	<span title="<%= data.From %>"><%= data.FromShort + ' (' + data.Date + ')' %></span>
	<br />
	<%
		for (var i in data.Attachments) {
			var AttachmentItem = data.Attachments[i];
	%>
		<span class="attachment" rel="<%= AttachmentItem.SaveLink %>" title="<%= AttachmentItem.Name %>">
			@<%= AttachmentItem.Name %> (<%= AttachmentItem.Size %>)
		</span>
	<% } %>
</div>
<div class="body-tabs">
	<span class="button body-tabs-item images<%= (data.HasImages) ? '' : ' hide' %>" name="actionShowImages">Show Images</span>
	<span class="button body-tabs-item html<%= (data.HasHtml) ? ' selected' : ' hide' %>" name="actionHtml">Html</span>
	<span class="button body-tabs-item plain<%= (data.HasPlain)
		  ? ((data.HasHtml) ? '' : ' selected') : ' hide' %>" name="actionPlain">Plain</span>
</div>
<div class="body-view">
	<div class="body-view-item html<%= (data.HasHtml) ? '' : ' hide' %>"></div>
	<div class="body-view-item plain<%= (data.HasPlain && !data.HasHtml) ? '' : ' hide' %>"></div>
</div>